package com.example.service.impl;


import com.example.mapper.TbUserMapper;
import com.example.pojo.TbUser;
import com.example.service.TbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TbUserServiceImpl implements TbUserService {

    @Autowired
    TbUserMapper tbuserMapper;
    private String user_name;
    private String login_name;
    private String password;
    private int is_deleted;

    @Override
    public List<TbUser> findTbUsers() {
        return tbuserMapper.findTbUsers();
    }

    @Override
    public TbUser findTbUserByUserName(String user_name) {
        return tbuserMapper.findTbUserByUserName(user_name);
    }

    @Override
    public int addTbUser(String user_name,String login_name,String password) {
        return tbuserMapper.addTbUser(user_name,login_name,password);
    }

    @Override
    public int updateTbUser(TbUser tbUser) {
        return tbuserMapper.updateTbUser(tbUser);
    }

    @Override
    public int deleteTbUser(long id) {
        return tbuserMapper.deleteTbUser(id);
    }


}
